package com.hxq.wap.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

//entity实体类的注解
@Entity
//实体类对应的数据表的注解
@Table(name="user")
public class UserEntity{
	private Integer id;
	private String userName;
	private String password;
	private String realName;
	private Integer age;
	//主键注解
	@Id
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	@Override
	public String toString() {
		return "UserEntity [id=" + id + ", userName=" + userName + ", password=" + password + ", realName=" + realName
				+ ", age=" + age + "]";
	}
	
}